//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.restaurant.application.accumulategoodscoupon.support;

import com.nebutown.base.ViewSpec;
import com.nebutown.base.data.ViewUpdate;
import com.nebutown.description.data.UnitForGeneration;
import com.nebutown.generation.PickableBean;
import com.nebutown.generation.basictype.StringData;
import com.nebutown.supporthome.AbstractBase;
import com.nebutown.supporthome.CmdCapsule;
import com.restaurant.application.accumulategoodscoupon.AccumulateGoodsCouponImpl;
import com.restaurant.application.indexes.accumulategoodslist.mysql.AccumulateGoodsListBean;

public class AccumulateGoodsCouponBase extends AbstractBase {
    private UnitForGeneration desc = new UnitForGeneration();

    public AccumulateGoodsCouponBase() {
    }

    public AbstractAccumulateGoodsCoupon getImpl() {
        AbstractAccumulateGoodsCoupon inst = new AccumulateGoodsCouponImpl();
        inst.setBase(this, this.getEscort());
        return inst;
    }

    public AccumulateGoodsCouponOutFace getUnitFace() {
        return new AccumulateGoodsCouponOutFace(this);
    }

    protected Object callDistr(String name, Object... param) {
        byte var4 = -1;
        switch(name.hashCode()) {
            case -1021464297:
                if (name.equals("getViewLead")) {
                    var4 = 7;
                }
                break;
            case -924312449:
                if (name.equals("getCouponManagement")) {
                    var4 = 4;
                }
                break;
            case -885969078:
                if (name.equals("getFullView")) {
                    var4 = 6;
                }
                break;
            case -1184595:
                if (name.equals("exchangeCouponGoods")) {
                    var4 = 2;
                }
                break;
            case 98245393:
                if (name.equals("getId")) {
                    var4 = 5;
                }
                break;
            case 665542928:
                if (name.equals("showGoodsCouponDetail")) {
                    var4 = 3;
                }
                break;
            case 1142206792:
                if (name.equals("getEffectiveInterface")) {
                    var4 = 8;
                }
                break;
            case 1384501610:
                if (name.equals("getGoodsData")) {
                    var4 = 0;
                }
                break;
            case 1419432232:
                if (name.equals("upDateState")) {
                    var4 = 1;
                }
                break;
            case 2083177795:
                if (name.equals("getGoodsUIDDataForAccumulateGoodsList")) {
                    var4 = 9;
                }
        }

        switch(var4) {
            case 0:
                return this.getImpl().getGoodsData();
            case 1:
                this.getImpl().upDateState((String)param[0]);
                return "";
            case 2:
                return this.getImpl().exchangeCouponGoods();
            case 3:
                return this.getImpl().showGoodsCouponDetail((String)param[0]);
            case 4:
                return this.getImpl().getCouponManagement();
            case 5:
                return this.getImpl().getId();
            case 6:
                this.setIsRefresher();
                return this.getImpl().getFullView();
            case 7:
                return this.getImpl().getViewLead((ViewSpec)param[0]);
            case 8:
                return this.getImpl().getEffectiveInterface();
            case 9:
                return this.getImpl().getGoodsUIDDataForAccumulateGoodsList((AccumulateGoodsListBean)param[0]);
            default:
                return null;
        }
    }

    protected boolean authDistr(String name) {
        name.getClass();
        return true;
    }

    public CmdCapsule getUICall(int cmd) {
        switch(cmd) {
            case 0:
                return AbstractAccumulateGoodsCoupon.CMD_SAVE;
            case 1:
                return AbstractAccumulateGoodsCoupon.CMD_SELECTCOUPON;
            case 2:
                return AbstractAccumulateGoodsCoupon.CMD_CANCEL;
            case 3:
                return AbstractAccumulateGoodsCoupon.CMD_SEARCHCOUPON;
            default:
                return null;
        }
    }

    public ViewUpdate uiCall(int cmd, PickableBean param, int... seq) {
        switch(cmd) {
            case 0:
                return this.getImpl().save((GoodsCouponData)param, seq);
            case 1:
                return this.getImpl().selectCoupon((GoodsCouponData)param, seq);
            case 2:
                return this.getImpl().cancel(seq);
            case 3:
                return this.getImpl().searchCoupon((StringData)param, seq);
            default:
                return null;
        }
    }
}
